<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::io::DepthImage类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1io_1_1_depth_image.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classpcl_1_1io_1_1_depth_image-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::io::DepthImage类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>This class provides methods to fill a depth or disparity image.  
 <a href="classpcl_1_1io_1_1_depth_image.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="image__depth_8h_source.html">image_depth.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:aa6d1eedd558848394546212ec2142e81"><td class="memItemLeft" align="right" valign="top"><a id="aa6d1eedd558848394546212ec2142e81"></a>
typedef boost::shared_ptr&lt; <a class="el" href="classpcl_1_1io_1_1_depth_image.html">DepthImage</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Ptr</b></td></tr>
<tr class="separator:aa6d1eedd558848394546212ec2142e81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7545b5ba73be407ffeace232f891103"><td class="memItemLeft" align="right" valign="top"><a id="ae7545b5ba73be407ffeace232f891103"></a>
typedef boost::shared_ptr&lt; const <a class="el" href="classpcl_1_1io_1_1_depth_image.html">DepthImage</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>ConstPtr</b></td></tr>
<tr class="separator:ae7545b5ba73be407ffeace232f891103"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91a32ac98cda11db3f308d596efb2cae"><td class="memItemLeft" align="right" valign="top"><a id="a91a32ac98cda11db3f308d596efb2cae"></a>
typedef boost::chrono::high_resolution_clock&#160;</td><td class="memItemRight" valign="bottom"><b>Clock</b></td></tr>
<tr class="separator:a91a32ac98cda11db3f308d596efb2cae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e098c7090b578ca11c7227d9c3cdf3a"><td class="memItemLeft" align="right" valign="top"><a id="a3e098c7090b578ca11c7227d9c3cdf3a"></a>
typedef boost::chrono::high_resolution_clock::time_point&#160;</td><td class="memItemRight" valign="bottom"><b>Timestamp</b></td></tr>
<tr class="separator:a3e098c7090b578ca11c7227d9c3cdf3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:abce7894729ee56f69391940b5e98af18"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_depth_image.html#abce7894729ee56f69391940b5e98af18">DepthImage</a> (FrameWrapper::Ptr depth_metadata, float baseline, float focal_length, pcl::uint64_t shadow_value, pcl::uint64_t no_sample_value)</td></tr>
<tr class="memdesc:abce7894729ee56f69391940b5e98af18"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor  <a href="classpcl_1_1io_1_1_depth_image.html#abce7894729ee56f69391940b5e98af18">更多...</a><br /></td></tr>
<tr class="separator:abce7894729ee56f69391940b5e98af18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a884334868255f6abba1c8878482fe288"><td class="memItemLeft" align="right" valign="top"><a id="a884334868255f6abba1c8878482fe288"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>DepthImage</b> (FrameWrapper::Ptr depth_metadata, float baseline, float focal_length, pcl::uint64_t shadow_value, pcl::uint64_t no_sample_value, Timestamp time)</td></tr>
<tr class="separator:a884334868255f6abba1c8878482fe288"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfaa641a54a27af0747c751e3589ebdd"><td class="memItemLeft" align="right" valign="top"><a id="adfaa641a54a27af0747c751e3589ebdd"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_depth_image.html#adfaa641a54a27af0747c751e3589ebdd">~DepthImage</a> ()</td></tr>
<tr class="memdesc:adfaa641a54a27af0747c751e3589ebdd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. Never throws an exception. <br /></td></tr>
<tr class="separator:adfaa641a54a27af0747c751e3589ebdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7607f7aa2e47c902c05afc66e6703b08"><td class="memItemLeft" align="right" valign="top">const FrameWrapper::Ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_depth_image.html#a7607f7aa2e47c902c05afc66e6703b08">getMetaData</a> () const</td></tr>
<tr class="memdesc:a7607f7aa2e47c902c05afc66e6703b08"><td class="mdescLeft">&#160;</td><td class="mdescRight">method to access the internal data structure from OpenNI. If the data is accessed just read-only, then this method is faster than a fillXXX method  <a href="classpcl_1_1io_1_1_depth_image.html#a7607f7aa2e47c902c05afc66e6703b08">更多...</a><br /></td></tr>
<tr class="separator:a7607f7aa2e47c902c05afc66e6703b08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac47ce107cd62894a56021bee3b753670"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_depth_image.html#ac47ce107cd62894a56021bee3b753670">fillDisparityImage</a> (unsigned width, unsigned height, float *disparity_buffer, unsigned line_step=0) const</td></tr>
<tr class="memdesc:ac47ce107cd62894a56021bee3b753670"><td class="mdescLeft">&#160;</td><td class="mdescRight">fills a user given block of memory with the disparity values with additional nearest-neighbor down-scaling.  <a href="classpcl_1_1io_1_1_depth_image.html#ac47ce107cd62894a56021bee3b753670">更多...</a><br /></td></tr>
<tr class="separator:ac47ce107cd62894a56021bee3b753670"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a013546827ef1e1d3bba4a0ed30337558"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_depth_image.html#a013546827ef1e1d3bba4a0ed30337558">fillDepthImage</a> (unsigned width, unsigned height, float *depth_buffer, unsigned line_step=0) const</td></tr>
<tr class="memdesc:a013546827ef1e1d3bba4a0ed30337558"><td class="mdescLeft">&#160;</td><td class="mdescRight">fills a user given block of memory with the disparity values with additional nearest-neighbor down-scaling.  <a href="classpcl_1_1io_1_1_depth_image.html#a013546827ef1e1d3bba4a0ed30337558">更多...</a><br /></td></tr>
<tr class="separator:a013546827ef1e1d3bba4a0ed30337558"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7db23d173639e4586854138a45156178"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_depth_image.html#a7db23d173639e4586854138a45156178">fillDepthImageRaw</a> (unsigned width, unsigned height, unsigned short *depth_buffer, unsigned line_step=0) const</td></tr>
<tr class="memdesc:a7db23d173639e4586854138a45156178"><td class="mdescLeft">&#160;</td><td class="mdescRight">fills a user given block of memory with the raw values with additional nearest-neighbor down-scaling.  <a href="classpcl_1_1io_1_1_depth_image.html#a7db23d173639e4586854138a45156178">更多...</a><br /></td></tr>
<tr class="separator:a7db23d173639e4586854138a45156178"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11b82eb33cc8602f0a40f9d9c2e4a0c4"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_depth_image.html#a11b82eb33cc8602f0a40f9d9c2e4a0c4">getBaseline</a> () const</td></tr>
<tr class="memdesc:a11b82eb33cc8602f0a40f9d9c2e4a0c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">method to access the baseline of the "stereo" frame that was used to retrieve the depth image.  <a href="classpcl_1_1io_1_1_depth_image.html#a11b82eb33cc8602f0a40f9d9c2e4a0c4">更多...</a><br /></td></tr>
<tr class="separator:a11b82eb33cc8602f0a40f9d9c2e4a0c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90c12640e59adb8f576279ab1bbae358"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_depth_image.html#a90c12640e59adb8f576279ab1bbae358">getFocalLength</a> () const</td></tr>
<tr class="memdesc:a90c12640e59adb8f576279ab1bbae358"><td class="mdescLeft">&#160;</td><td class="mdescRight">method to access the focal length of the "stereo" frame that was used to retrieve the depth image.  <a href="classpcl_1_1io_1_1_depth_image.html#a90c12640e59adb8f576279ab1bbae358">更多...</a><br /></td></tr>
<tr class="separator:a90c12640e59adb8f576279ab1bbae358"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a525f4476922e79d7bc330e468552a0a0"><td class="memItemLeft" align="right" valign="top">pcl::uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_depth_image.html#a525f4476922e79d7bc330e468552a0a0">getShadowValue</a> () const</td></tr>
<tr class="memdesc:a525f4476922e79d7bc330e468552a0a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">method to access the shadow value, that indicates pixels lying in shadow in the depth image.  <a href="classpcl_1_1io_1_1_depth_image.html#a525f4476922e79d7bc330e468552a0a0">更多...</a><br /></td></tr>
<tr class="separator:a525f4476922e79d7bc330e468552a0a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76e78a78b85ad90b8945a88022758058"><td class="memItemLeft" align="right" valign="top">pcl::uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_depth_image.html#a76e78a78b85ad90b8945a88022758058">getNoSampleValue</a> () const</td></tr>
<tr class="memdesc:a76e78a78b85ad90b8945a88022758058"><td class="mdescLeft">&#160;</td><td class="mdescRight">method to access the no-sample value, that indicates pixels where no disparity could be determined for the depth image.  <a href="classpcl_1_1io_1_1_depth_image.html#a76e78a78b85ad90b8945a88022758058">更多...</a><br /></td></tr>
<tr class="separator:a76e78a78b85ad90b8945a88022758058"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a851a92e1c835d27e3c8bcaa2c9bbc75b"><td class="memItemLeft" align="right" valign="top">unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_depth_image.html#a851a92e1c835d27e3c8bcaa2c9bbc75b">getWidth</a> () const</td></tr>
<tr class="separator:a851a92e1c835d27e3c8bcaa2c9bbc75b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42aa80360eb334ff376e95588502472d"><td class="memItemLeft" align="right" valign="top">unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_depth_image.html#a42aa80360eb334ff376e95588502472d">getHeight</a> () const</td></tr>
<tr class="separator:a42aa80360eb334ff376e95588502472d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef468d7e0245e1989e5dcac41672e68c"><td class="memItemLeft" align="right" valign="top">unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_depth_image.html#aef468d7e0245e1989e5dcac41672e68c">getFrameID</a> () const</td></tr>
<tr class="separator:aef468d7e0245e1989e5dcac41672e68c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade7ea904db078af4610229e96c639718"><td class="memItemLeft" align="right" valign="top">pcl::uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_depth_image.html#ade7ea904db078af4610229e96c639718">getTimestamp</a> () const</td></tr>
<tr class="separator:ade7ea904db078af4610229e96c639718"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1825d1c731d3fac1b05e638293cbc64"><td class="memItemLeft" align="right" valign="top"><a id="ac1825d1c731d3fac1b05e638293cbc64"></a>
Timestamp&#160;</td><td class="memItemRight" valign="bottom"><b>getSystemTimestamp</b> () const</td></tr>
<tr class="separator:ac1825d1c731d3fac1b05e638293cbc64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb90b656494a85c8561aa8c9c75ef02a"><td class="memItemLeft" align="right" valign="top"><a id="adb90b656494a85c8561aa8c9c75ef02a"></a>
const unsigned short *&#160;</td><td class="memItemRight" valign="bottom"><b>getData</b> ()</td></tr>
<tr class="separator:adb90b656494a85c8561aa8c9c75ef02a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a777e9d1e6d16638cdeda548e378659fc"><td class="memItemLeft" align="right" valign="top"><a id="a777e9d1e6d16638cdeda548e378659fc"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getDataSize</b> () const</td></tr>
<tr class="separator:a777e9d1e6d16638cdeda548e378659fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a9bb3bf9b8f8822c128d84000d6f372"><td class="memItemLeft" align="right" valign="top"><a id="a4a9bb3bf9b8f8822c128d84000d6f372"></a>
unsigned&#160;</td><td class="memItemRight" valign="bottom"><b>getStep</b> () const</td></tr>
<tr class="separator:a4a9bb3bf9b8f8822c128d84000d6f372"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a135207f649098f34a1d6ff56bf746e4c"><td class="memItemLeft" align="right" valign="top"><a id="a135207f649098f34a1d6ff56bf746e4c"></a>
pcl::io::FrameWrapper::Ptr&#160;</td><td class="memItemRight" valign="bottom"><b>wrapper_</b></td></tr>
<tr class="separator:a135207f649098f34a1d6ff56bf746e4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a182ba37c20818c0870309061c0a40574"><td class="memItemLeft" align="right" valign="top"><a id="a182ba37c20818c0870309061c0a40574"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>baseline_</b></td></tr>
<tr class="separator:a182ba37c20818c0870309061c0a40574"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3155ee4e986ea877b5781deb15ce4ce"><td class="memItemLeft" align="right" valign="top"><a id="ae3155ee4e986ea877b5781deb15ce4ce"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>focal_length_</b></td></tr>
<tr class="separator:ae3155ee4e986ea877b5781deb15ce4ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a244f4e6e2f366ef64afb250348bd1a8e"><td class="memItemLeft" align="right" valign="top"><a id="a244f4e6e2f366ef64afb250348bd1a8e"></a>
pcl::uint64_t&#160;</td><td class="memItemRight" valign="bottom"><b>shadow_value_</b></td></tr>
<tr class="separator:a244f4e6e2f366ef64afb250348bd1a8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33a88470e1673a4803681e2c97cf6693"><td class="memItemLeft" align="right" valign="top"><a id="a33a88470e1673a4803681e2c97cf6693"></a>
pcl::uint64_t&#160;</td><td class="memItemRight" valign="bottom"><b>no_sample_value_</b></td></tr>
<tr class="separator:a33a88470e1673a4803681e2c97cf6693"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02ef3c385e79f861816a4e1b8c551864"><td class="memItemLeft" align="right" valign="top"><a id="a02ef3c385e79f861816a4e1b8c551864"></a>
Timestamp&#160;</td><td class="memItemRight" valign="bottom"><b>timestamp_</b></td></tr>
<tr class="separator:a02ef3c385e79f861816a4e1b8c551864"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>This class provides methods to fill a depth or disparity image. </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="abce7894729ee56f69391940b5e98af18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abce7894729ee56f69391940b5e98af18">&#9670;&nbsp;</a></span>DepthImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pcl::io::DepthImage::DepthImage </td>
          <td>(</td>
          <td class="paramtype">FrameWrapper::Ptr&#160;</td>
          <td class="paramname"><em>depth_metadata</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>baseline</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>focal_length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">pcl::uint64_t&#160;</td>
          <td class="paramname"><em>shadow_value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">pcl::uint64_t&#160;</td>
          <td class="paramname"><em>no_sample_value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">depth_metadata</td><td>the actual data from the OpenNI library </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">baseline</td><td>the baseline of the "stereo" camera, i.e. the distance between the projector and the IR camera for Primesense like cameras. e.g. 7.5cm for PSDK5 and PSDK6 reference design. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">focal_length</td><td>focal length of the "stereo" frame. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">shadow_value</td><td>defines which values in the depth data are indicating shadow (resulting from the parallax between projector and IR camera) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">no_sample_value</td><td>defines which values in the depth data are indicating that no depth (disparity) could be determined . </td></tr>
  </table>
  </dd>
</dl>
<dl class="section attention"><dt>注意</dt><dd>The focal length may change, depending whether the depth stream is registered/mapped to the <a class="el" href="structpcl_1_1_r_g_b.html" title="A structure representing RGB color information.">RGB</a> stream or not. </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a013546827ef1e1d3bba4a0ed30337558"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a013546827ef1e1d3bba4a0ed30337558">&#9670;&nbsp;</a></span>fillDepthImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::io::DepthImage::fillDepthImage </td>
          <td>(</td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>depth_buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>line_step</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>fills a user given block of memory with the disparity values with additional nearest-neighbor down-scaling. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>width the width of the desired depth image. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>height the height of the desired depth image. </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">depth_buffer</td><td>the float pointer to the actual memory buffer to be filled with the depth values. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">line_step</td><td>if only a rectangular sub region of the buffer needs to be filled, then line_step is the width in bytes (not floats) of the original width of the depth buffer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a7db23d173639e4586854138a45156178"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7db23d173639e4586854138a45156178">&#9670;&nbsp;</a></span>fillDepthImageRaw()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::io::DepthImage::fillDepthImageRaw </td>
          <td>(</td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned short *&#160;</td>
          <td class="paramname"><em>depth_buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>line_step</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>fills a user given block of memory with the raw values with additional nearest-neighbor down-scaling. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>width the width of the desired raw image. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>height the height of the desired raw image. </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">depth_buffer</td><td>the unsigned short pointer to the actual memory buffer to be filled with the raw values. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">line_step</td><td>if only a rectangular sub region of the buffer needs to be filled, then line_step is the width in bytes (not floats) of the original width of the depth buffer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac47ce107cd62894a56021bee3b753670"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac47ce107cd62894a56021bee3b753670">&#9670;&nbsp;</a></span>fillDisparityImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::io::DepthImage::fillDisparityImage </td>
          <td>(</td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>disparity_buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>line_step</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>fills a user given block of memory with the disparity values with additional nearest-neighbor down-scaling. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>the width of the desired disparity image. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>the height of the desired disparity image. </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">disparity_buffer</td><td>the float pointer to the actual memory buffer to be filled with the disparity values. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">line_step</td><td>if only a rectangular sub region of the buffer needs to be filled, then line_step is the width in bytes (not floats) of the original width of the depth buffer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a11b82eb33cc8602f0a40f9d9c2e4a0c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11b82eb33cc8602f0a40f9d9c2e4a0c4">&#9670;&nbsp;</a></span>getBaseline()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float pcl::io::DepthImage::getBaseline </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>method to access the baseline of the "stereo" frame that was used to retrieve the depth image. </p>
<dl class="section return"><dt>返回</dt><dd>baseline in meters </dd></dl>

</div>
</div>
<a id="a90c12640e59adb8f576279ab1bbae358"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90c12640e59adb8f576279ab1bbae358">&#9670;&nbsp;</a></span>getFocalLength()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float pcl::io::DepthImage::getFocalLength </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>method to access the focal length of the "stereo" frame that was used to retrieve the depth image. </p>
<dl class="section return"><dt>返回</dt><dd>focal length in pixels </dd></dl>

</div>
</div>
<a id="aef468d7e0245e1989e5dcac41672e68c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef468d7e0245e1989e5dcac41672e68c">&#9670;&nbsp;</a></span>getFrameID()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned pcl::io::DepthImage::getFrameID </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>an ascending id for the depth frame </dd></dl>
<dl class="section attention"><dt>注意</dt><dd>not necessarily synchronized with other streams </dd></dl>

</div>
</div>
<a id="a42aa80360eb334ff376e95588502472d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42aa80360eb334ff376e95588502472d">&#9670;&nbsp;</a></span>getHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned pcl::io::DepthImage::getHeight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>the height of the depth image </dd></dl>

</div>
</div>
<a id="a7607f7aa2e47c902c05afc66e6703b08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7607f7aa2e47c902c05afc66e6703b08">&#9670;&nbsp;</a></span>getMetaData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const FrameWrapper::Ptr pcl::io::DepthImage::getMetaData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>method to access the internal data structure from OpenNI. If the data is accessed just read-only, then this method is faster than a fillXXX method </p>
<dl class="section return"><dt>返回</dt><dd>the actual depth data of type openni::VideoFrameRef. </dd></dl>

</div>
</div>
<a id="a76e78a78b85ad90b8945a88022758058"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76e78a78b85ad90b8945a88022758058">&#9670;&nbsp;</a></span>getNoSampleValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pcl::uint64_t pcl::io::DepthImage::getNoSampleValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>method to access the no-sample value, that indicates pixels where no disparity could be determined for the depth image. </p>
<dl class="section return"><dt>返回</dt><dd>no-sample value </dd></dl>

</div>
</div>
<a id="a525f4476922e79d7bc330e468552a0a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a525f4476922e79d7bc330e468552a0a0">&#9670;&nbsp;</a></span>getShadowValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pcl::uint64_t pcl::io::DepthImage::getShadowValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>method to access the shadow value, that indicates pixels lying in shadow in the depth image. </p>
<dl class="section return"><dt>返回</dt><dd>shadow value </dd></dl>

</div>
</div>
<a id="ade7ea904db078af4610229e96c639718"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade7ea904db078af4610229e96c639718">&#9670;&nbsp;</a></span>getTimestamp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pcl::uint64_t pcl::io::DepthImage::getTimestamp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>a ascending timestamp for the depth frame </dd></dl>
<dl class="section attention"><dt>注意</dt><dd>its not the system time, thus can not be used directly to synchronize different sensors. But definitely synchronized with other streams </dd></dl>

</div>
</div>
<a id="a851a92e1c835d27e3c8bcaa2c9bbc75b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a851a92e1c835d27e3c8bcaa2c9bbc75b">&#9670;&nbsp;</a></span>getWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned pcl::io::DepthImage::getWidth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>the width of the depth image </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>io/include/pcl/io/<a class="el" href="image__depth_8h_source.html">image_depth.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>io</b></li><li class="navelem"><a class="el" href="classpcl_1_1io_1_1_depth_image.html">DepthImage</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
